<?php
namespace App\Controllers;

use Library\Mvc\Controller;
use Library\Dal\Driver\Mysql\Adapter;
use Library\Dal\Driver\Mysql\ActiveRecord;

/**
 * Main controller
 * 
 * @class App.Controllers.Main
 * @extends Library.Mvc.Controller
 */
class Main extends Controller
{
	public function __init()
	{
		
	}
	
	public function indexAction()
	{
		
	}
 
	public function loginAction()
	{
		$qb = new ActiveRecord();
		$qb->set('username', 'Steffen Brem');
		$qb->set('username2', 'Steffen Brem');
		$qb->set('username3', 'Steffen Brem');
		$qb->where('username', 'tan');
		$qb->update('users');
 	}
}